package com.mingqijia.gassafety.job.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mingqijia.gassafety.db.entity.RecordReceiverValveHistory;
import com.mingqijia.gassafety.db.mapper.RecordReceiverValveHistoryMapper;
import com.mingqijia.gassafety.job.service.RecordReceiverValveHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 接收器和电磁阀上报数据 服务实现类
 * </p>
 *
 * @author guoliang.lao
 * @since 2023-10-12
 */
@Service
public class RecordReceiverValveHistoryServiceImpl extends ServiceImpl<RecordReceiverValveHistoryMapper, RecordReceiverValveHistory> implements RecordReceiverValveHistoryService {

    @Autowired
    private RecordReceiverValveHistoryMapper recordReceiverValveHistoryMapper;

    @Override
    public void insertBatch(List<RecordReceiverValveHistory> valveHistories, String month) {
         recordReceiverValveHistoryMapper.insertBatch(valveHistories, month);
    }

    @Override
    public void deleteRecordHistory(String month) {
        recordReceiverValveHistoryMapper.deleteRecordHistory(month);
    }
}
